package com.jgp.internalcommon.dto;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@Accessors(chain = true)
@SuppressWarnings("all")
public class ResponseResult<T> implements Serializable {
    private static final long serialVersionUID = -1884925099227692057L;

    private int code;
    private String message;
    private T data;

    public static<T> ResponseResult success(T data){
        ResponseResult result = new ResponseResult();
        result.setData(data);
        return result;
    }


}
